// 影院--服务层
const cinemas = require("../dao/cinemasDao")

const get = async ({ name, address, phone, status }) => await cinemas.get({ name, address, phone, status });
const create = async (self) => await cinemas.create(self);
const deleteOne = async (_id) => await cinemas.deleteOne(_id);
// 根据_id找到需要修改
const update = async (_id, updateData) => await cinemas.update(_id, updateData);

module.exports = { create, get, deleteOne, update }